<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element"> <span>
                            <img alt="image" class="img-circle" src="__STATIC__/admin/img/profile_small.jpg" />
                             </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">{$Think.session.user.username}</strong>
                             </span> <span class="text-muted text-xs block">{$Think.session.role_name} <b class="caret"></b></span> </span> </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="">个人信息</a></li>
                        <li><a href="">好友</a></li>
                        <li><a href="">信箱</a></li>
                        <li class="divider"></li>
                        <li><a href="/admin/logout">登出</a></li>
                    </ul>
                </div>
                <div class="logo-element">
                    HPP
                </div>
            </li>
            {foreach $menus as $k=>$v}
            <li {if ($curr_menu_info['id'] == $v['id']) || ($curr_menu_info['parent_id'] == $v['id']) }class="active"{/if} >
                <a href="/admin{$v['url']}" data-menu="{$v.id}">
                    <i class="fa {$v.icon}"></i>
                    <span class="nav-label">{$v['name']}</span>
                    {if isset($v['son'])}
                    <span class="fa arrow"></span>
                    {/if}
                </a>
                {if isset($v['son'])}
                <ul class="nav nav-second-level collapse">
                    {foreach $v['son'] as $item}
                    <li {if $curr_menu_info['id'] == $item['id']}class="active"{/if}><a href="/admin{$item['url']}" data-menu="{$item.id}">{$item['name']}</a></li>
                    {/foreach}
                </ul>
                {/if}
            </li>
            {/foreach}
        </ul>

    </div>
</nav>